<script setup>
import { onMounted, inject, onUnmounted } from 'vue'

let map, scene
onMounted(() => {
  ({ map, scene } = inject('mapScene'))
  map.flyTo({
    center: [114.3, 30.5],
    zoom: 10,
    speed: 2
  })
  scene.getLayers().forEach(item => {
    item.show()
  })
})

onUnmounted(() => {
  scene.getLayers().forEach(item => {
    item.hide()
  })
})
</script>

<template>

</template>

<style lang="scss">

</style>
